package com.roncoo.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdf
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Lecturer对象", description="")
public class Lecturer extends Model<Lecturer> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "讲师ID")
    @TableId(value = "lecturer_id", type = IdType.AUTO)
    private Integer lecturerId;

    @ApiModelProperty(value = "讲师的用户Id")
    private Integer lecturerUserId;

    @ApiModelProperty(value = "讲师用户的名字")
    private String lecturerUserName;

    @ApiModelProperty(value = "讲师的手机号")
    private String lecturerPhone;

    @ApiModelProperty(value = "讲师的email")
    private String lecturerEmail;

    @ApiModelProperty(value = "所在地")
    private String position;

    @ApiModelProperty(value = "头像地址")
    private String headImgUrl;

    @ApiModelProperty(value = "介绍")
    private String introduce;

    @ApiModelProperty(value = "教师所占的分成比重")
    private Double lecturerRoportion;

    @ApiModelProperty(value = "入注时间")
    private Date lecturerCreate;

    @ApiModelProperty(value = "修改时间")
    private Date lecturerModified;

    @ApiModelProperty(value = "状态Id  1 禁用 2 正常")
    private Integer statusId;

    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @ApiModelProperty(value = "银行卡号")
    private String bankNum;

    @ApiModelProperty(value = "银行支行名称")
    private String bankBranch;

    private Integer sort;

    @ApiModelProperty(value = "身份证")
    private String idCard;


    @Override
    protected Serializable pkVal() {
        return this.lecturerId;
    }

}
